package com.adream.scalpel.app.client.service;

import java.util.List;

import com.adream.scalpel.common.client.vo.MenuItemVO;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("MenuManagement.rpc")
public interface MenuManagement extends RemoteService {
    /**
     * Utility class for simplifying access to the instance of async service.
     */
    public static class Util {
        private static MenuManagementAsync instance;

        public static MenuManagementAsync getInstance() {
            if (instance == null) {
                instance = GWT.create(MenuManagement.class);
            }
            return instance;
        }
    }

    public List<MenuItemVO> getMenuItems();
}
